package cn.bdqn.controller;

import cn.bdqn.domain.PurchaseInfo;
import cn.bdqn.service.PurchaseInfoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (Purchaseinfo)表控制层
 *
 * @author makejava
 * @since 2020-09-21 10:58:41
 */
@RestController
@RequestMapping("/PMS/purchaseinfo")
public class PurchaseinfoController {
    /**
     * 服务对象
     */
    @Resource
    private PurchaseInfoService purchaseinfoService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public PurchaseInfo selectOne(Integer id) {
        return this.purchaseinfoService.queryById(id);
    }



}